<?php

class Comment extends Epic_Db_Data_Abstract
{
    protected $_nameTable = 'blog_comments';
    
    public function save(array $data = array())
    {
    	$data['created_time'] = date('Y-m-d h:i:s', time());
    	$data['user_id'] = Epic::getSession()->get('user_id');
    	$data['content'] = htmlentities($data['content'], ENT_QUOTES, "UTF-8");
    	parent::save($data);
    }
}